<div class="cart-title">Your Cart</div>
<table>
  <% for item in @cart.items %>
    <tr>
      <td><%=h item.quantity > 1 ? "" + item.title + "x"  +item.quantity.to_s : "" + item.title %></td>
      <td class="item-price"><%= item.price %></td>
    </tr>
  <% end %>

  <tr class="total-line">
    <td colspan="2">Total</td>
    <td class="total-cell"><%= @cart.total_price %></td>
  </tr>

</table>

<%= button_to "Empty cart", :action => :empty_cart %>
